package com.qiqidream.admin.monitor.api;

import com.alibaba.fastjson.JSONObject;
import com.qiqidream.admin.common.base.BaseController;
import com.qiqidream.admin.monitor.service.ErrorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author QiQiDream
 * @since 2019/12/21 11:48
 */
@RestController
@Api(tags = "监控：错误日志管理接口")
@RequestMapping("/monitor/error")
public class ErrorController extends BaseController {
    @Resource
    ErrorService errorService;

    @ApiOperation(value = "触发一个错误")
    @GetMapping("")
    public Boolean getLogs() {
        String a = "as";
        JSONObject.parseObject(a);
        return true;
    }
}
